import {
  getDataOverview,
  getOrderGoodsCount,
  getRentCurve,
  getReceivedRentCurve,
  getFinalPaymentCurve,
  getReceivedFinalPaymentCurve,
  getEcommerceOrderGoodsCount
} from '@/services/DataCenter'

export default () => {
  const GetDataOverview = (params: any) => {
    return getDataOverview(params)
  }

  const GetOrderGoodsCount = (params: any) => {
    return getOrderGoodsCount(params)
  }

  const GetRentCurve = (params: any) => {
    return getRentCurve(params)
  }

  const GetReceivedRentCurve = (params: any) => {
    return getReceivedRentCurve(params)
  }

  const GetFinalPaymentCurve = (params: any) => {
    return getFinalPaymentCurve(params)
  }

  const GetReceivedFinalPaymentCurve = (params: any) => {
    return getReceivedFinalPaymentCurve(params)
  }

  const GetEcommerceOrderGoodsCount = (params: any) => {
    return getEcommerceOrderGoodsCount(params)
  }

  return {
    GetDataOverview,
    GetOrderGoodsCount,
    GetRentCurve,
    GetReceivedRentCurve,
    GetFinalPaymentCurve,
    GetReceivedFinalPaymentCurve,
    GetEcommerceOrderGoodsCount
  }
}
